package com.gyhy.dumplings.order.feign;


import com.gyhy.dumplings.common.utils.R;
import com.gyhy.dumplings.order.entity.OrderDetailEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(name = "dumplings-ware")
@Service
public interface WareFeignService {

    @PostMapping(value = "/ware/updateWare")
    R updateWare(@RequestBody List<OrderDetailEntity> orderDetailEntities);

}
